package cn.huiyunche.base.service.vo;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 人送车－用户位置VO
 *
 * @author houjianhui
 */
public class UserPositionVo implements Serializable {

    private static final long serialVersionUID = 4671843366928491841L;

    @NotNull(message = "纬度不能为空")
    private BigDecimal latitude;
    @NotNull(message = "经度不能为空")
    private BigDecimal longitude;
    private String province;
    private String city;
    private String county;
    @NotBlank(message = "详细地址不能为空")
    private String address;

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "UserPositionVo [latitude=" + latitude + ", longitude=" + longitude + ", province=" + province
                + ", city=" + city + ", county=" + county + ", address=" + address + "]";
    }

}
